package com.dsunsoft.rtu.common.constant;

/**
 * 常量
 */
public class CommonConstants {

    /**
     * UTF-8
     */
    public static final String UTF_8 = "UTF-8";
    /**
     * GMT+8
     */
    public static final String GMT_8 = "GMT+8";
    /**
     * 1
     */
    public static final Integer ONE = 1;
    /**
     * 空字符串
     */
    public static final String EMPTY = "";
    /**
     * 0
     */
    public static final String ZERO_STR = "0";
    /**
     * 0
     */
    public static final Integer ZERO_INT = 0;
    /**
     * page size
     */
    public static final int PAGE_INDEX = 1;
    /**
     * page size
     */
    public static final int PAGE_SIZE = 20;
    /**
     * task
     */
    public static final String TASK_QUEUE = "rtu_task";
    /**
     * yyyy-MM-dd HH:mm:ss
     */
    public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
    /**
     * yyyyMMddHHmmss
     */
    public static final String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
    /**
     * redis 锁前缀
     */
    public static final String REDIS_LOCK_PREFIX = "redis_lock:";
    /**
     * Content-Type
     */
    public static final String CONTENT_TYPE = "Content-Type";
    /**
     * Content-Type form
     */
    public static final String CONTENT_TYPE_JSON = "application/json;charset=UTF-8";
    /**
     * Content-Type form
     */
    public static final String CONTENT_TYPE_FORM = "application/x-www-form-urlencoded;charset=UTF-8";

    /* ********************* TCP请求报文信息 **************************** */

    /**
     * TCP 报文读取(9796),降雨和水位信息
     */
    public static final String TCP_REQUEST_DATA = "9796";
    /**
     * TCP 包头写入(9779),发现命令到设备或写入设备返回的
     */
    public static final String TCP_REQUEST_WRITE_RETURN = "9779";
    /**
     * TCP 心跳请求(1000)
     */
    public static final String TCP_REQUEST_HEARTBEAT = "1000";
    /**
     * TCP 心跳请求头部(100000010009)
     */
    public static final String TCP_REQUEST_HEARTBEAT_HEAD = "100000010009";
    /**
     * 设备类型 雨量站
     */
    public static final String DEVICE_TYPE_RAINFALL = "07";
    /**
     * 设备类型 水位站
     */
    public static final String DEVICE_TYPE_WATER_LEVEL = "17";
    /**
     * 水势 落
     */
    public static final String WPTN_LUO = "4";
    /**
     * 水势 涨
     */
    public static final String WPTN_ZHANG = "5";
    /**
     * 水势 平
     */
    public static final String WPTN_PING = "6";

    /* ********************* socket业务类型 **************************** */

    /**
     * 召测摄像机 call_camera
     */
    public static final String BIZ_TYPE_CALL_CAMERA = "call_camera";
    /**
     * 开启摄像机 open_camera
     */
    public static final String BIZ_TYPE_OPEN_CAMERA = "open_camera";
    /**
     * 关闭摄像机 close_camera
     */
    public static final String BIZ_TYPE_CLOSE_CAMERA = "close_camera";
    /**
     * 设置摄像机召测时间,单位分钟
     */
    public static final String BIZ_TYPE_SET_CALL_CAMERA_MINUTE = "set_call_camera_minute";
    /**
     * 设置摄像机供电时间,单位分钟
     */
    public static final String BIZ_TYPE_SET_CAMERA_POWER_MINUTE = "set_camera_power_minute";
    /**
     * 设置RTU仪器为服务器当前时间
     */
    public static final String BIZ_TYPE_SET_RTU_TIME = "set_rtu_time";
    /**
     * 自定义命令
     */
    public static final String BIZ_TYPE_CUSTOM_COMMAND = "custom_command";
}
